package com.sun.spring5.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class UserProxy {
    @Before(value = "execution(* com.sun.spring5.User.add())")
    public void before(){
        System.out.println("before执行了.....");
    }
}
